<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>银行卡要素测试</title>
<script type="text/javascript" src="http://apps.bdimg.com/libs/jquery/2.1.1/jquery.min.js"></script>
<script type="text/javascript" src="http://www.veryhuo.com/uploads/Common/js/jQuery.md5.js"></script>
</head>
<body>
	<form action="../validationCard" method="post" >
		商户私钥：<input type="text" placeholder="商户私钥" id="pkey" name="PKEY" value="d58f37c85f8c4e9c864753917fad2456"><br>
		合作商编号：<input type="text" placeholder="请输入合作商编号" name="PARTNERNO" id="partnerNo" value="12345"><br>
		卡号：<input type="text" placeholder="请输入帐号" name="CARDNO" id="cardNo" value="6225768726230772"><br>
		姓名：<input type="text" placeholder="请输入账户名 " id="cardName" name="CARDNAME"><br>
		手机号：<input type="text" placeholder="请输入手机号" id = "cardMobile" name="CARDMOBILE"><br>
		流水号：<input type="text" placeholder="流水号" id="serialNo" name="SERIALNO"><br>
		身份证类型：<input type="text" placeholder="请输入身份证类型" id="cardIdType" name="CARDIDTYPE" value="01"><br>
		身份证号：<input type="text" placeholder="请输入身份证号" id="cardIdcard" name="CARDIDCARD"><br>
		签名值：<input type="text" name="SIGN" id="sign"><br>
		<input type="submit" value="查询">
	</form>
	<script type="text/javascript">
		$(document).ready(function(){
			$('input').blur(function(){
			    // pkey + "|" + partnerNo + "|" + serialNo + "|" + cardNo + "|" + cardMobile + "|" + cardIdcard + "|" + cardName + "|" + cardIdtype
				var t = $("#pkey").val() + "|" + $("#partnerNo").val() + "|" + $("#serialNo").val() + "|" + $("#cardNo").val() + "|" + $("#cardMobile").val() + "|" + $("#cardIdcard").val() + "|" + $("#cardName").val() + "|" + $("#cardIdType").val();
                console.log(t);
                $("#sign").val($.md5(t));
			});
		})
	</script>
</body>
</html>
